package org.dromara.customer.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.customer.domain.TaAddress;
import org.dromara.customer.domain.vo.TaAddressVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 地址Mapper接口
 *
 * @author xiyin321
 * @date 2024-07-07
 */
public interface TaAddressMapper extends BaseMapperPlus<TaAddress, TaAddressVo> {
//    @DataPermission({
//        @DataColumn(key = "userName", value = "user_id")
//    })
    Page<TaAddressVo> selectAddressPage(@Param("page") Page<Object> build, @Param(Constants.WRAPPER) Wrapper<TaAddress> taAddressWrapper);
}
